/**
 * 返回上一页
 */
export function navigateBack() {
  const page = getCurrentPages()
  if (page.length === 1) {
    uni.reLaunch({
      url: '/pages/index/index',
    })
    return
  }
  uni.navigateBack()
}
